<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Git 工作流</title>
    <link rel="stylesheet" type="text/css" href="./font/iconfont.css">
    <link rel="stylesheet" type="text/css" href="./css/index.css">
  </head>
  <body>

    <div class="wrapper">

      <!-- 功能导航 -->
      <div class="action-nav">
        <ul>
          <li>
            <i class="iconfont">&#xe759;</i>
            <span>Git</span>
          </li>

          <li class="active">
            <i class="iconfont">&#xe834;</i>
            <span>Git</span>
          </li>

          <li>
            <i class="iconfont">&#xe734;</i>
            <span>Git</span>
          </li>
        </ul>
      </div>

      <!-- 功能操作 -->
      <div class="git-action">

        <div class="action-item">
          <button class="update close">关闭窗口</button>
        </div>
      </div>
    </div>
    <script>window.$ = window.jQuery = require('jquery/dist/jquery.min.js');</script>
    <script type="text/javascript" src="./js/index.js"></script>
    <script>
        $(function() {
            const remote = require('electron').remote;
            const BrowserWindow = remote.BrowserWindow;

            $('.close').on('click', function() {
              var win = BrowserWindow.getFocusedWindow();
              win.destroy();
            });
        });
    </script>
  </body>
</html>